package cn.kgc.ssm.service;


import cn.kgc.ssm.dao.AppInfoMapper;
import cn.kgc.ssm.pojo.AppInfo;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author yxp
 * @create 2021-05-20 23:55
 */
@Service
public class AppInfoServiceImpl implements AppInfoService{

    @Resource
    AppInfoMapper appInfoMapper;


    @Override
    public List<AppInfo> getAppInfoList(String querySoftwareName, Integer queryFlatformId, Integer queryCategoryLevel1, Integer queryCategoryLevel2, Integer queryCategoryLevel3) {
        return appInfoMapper.getAppInfoList(querySoftwareName, queryFlatformId, queryCategoryLevel1, queryCategoryLevel2, queryCategoryLevel3);
    }

    @Override
    public AppInfo getAppInfoById(Integer aid) {
            return appInfoMapper.getAppInfoById(aid);
    }

    @Override
    public void updateStatusById(Integer status, Integer id) {
        appInfoMapper.updateStatusById(status,id);
    }


}
